Chris Pollett > Old Classes >
CS175

( Print View )

Student Corner:
  [Grades Sec1]

  [Submit Sec1]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HWs and Quizzes:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Quizzes]

Practice Exams:
  [Mid]  [Final]

                           












CS175 Fall 2014Practice Final

To study for the final I would suggest you: (1) Know how to do (by heart) all the practice problems. (2) Go over your notes at least three times. Second and third time try to see how much you can remember from the first time. (3) Go over the homework problems. (4) Try to create your own problems similar to the ones I have given and solve them. (5) Skim the relevant sections from the book. (6) If you want to study in groups, at this point you are ready to quiz each other. The practice final is below. Here are some facts about the actual final: (a) It is comprehensive (b) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (c) You should bring photo ID. (d) There will be more than one version of the test. Each version will be of comparable difficulty. (e) It is 10 problems, 6 problems will be on material since the lecture before the midterm, four problems will come from the topics covered prior to the midterm. (f) Two problems will be exactly (less typos) off of the practice final, and one will be off of practice midterm.

  1. For your choice of iOS or Android, explain with code how to switch from one view controller/activity being used to a different one within your app.
  2. Explain how REST web services work. Make up a REST API for a weather web service which allows one to request today's weather for a city specified in the query. Explain with code for Android or iOS code how to take the city name from a text field, use it to make a request of your service and then display today's temperature from the result in a label.
  3. Describe either how to use iOS's UITableView class or Android ListView class. Give a concrete code example.
  4. Using the 2D graphics API of either HTML5, Android or iOS platform and no images or characters explain with code how to make an app that cycles every 500ms between drawing a frame with a large X on the screen followed by one with a large O on the screen.
  5. What is a vertex shader? What is a fragment shader? For the platform of your choice describe how to read in such shaders from a file then compile them into a shader program.
  6. For the mobile platform of your choice create a small app that when launched pops up an alert with the current longitude and latitude.
  7. Define the following mobile UI related terms: touch, tap, gesture.
  8. Explain with code how to detect a triple tap for the platform of your choice.
  9. For the platform of your choice amongst Android, iPhone, and HTML5 explain with code how you could play an mp3 file.
  10. For either the Google API or the OpenLayers api, explain how to get a web page with a map of a given location and at least one pin on it.